home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
diskutil
/
ramled.arc
/
RAMD_LED.DOC
next >
Wrap
Text File
|
1987-02-28
|
1KB
|
39 lines
This is the modified version of diskbar.prg .
It lights up the LED on DRIVE A: every time my RAMDISK (on drive G:) is
accessed. To use another (or more) drive(s) replace the #6 with the
proper drive number, you want RAMD_LED to react on.
cmp.w #6, 14(sp) * is it the ramdisk ???
If you want to light up the LED in DRIVE B: you have to replace
and.b #$FD, $ff8802 * turn on DRIVE-A led ...
with
and.b #$FB, $ff8802 * turn on DRIVE-B led ...
and
or.b #2, $ff8802 * set bit 1
with
or.b #4, $ff8802 * set bit 2
*************************************************************************
NOTE:
-----
I spent ONLY 10 MINUTES to rewrite this stuff. So DON'T be angry about
the BAD documentation - I find it crazy to write 10K of documentation
for a 348 byte program ... :-)
BTW:
assemble with as68, then use relmod DIRECTLY - YOU DON'T HAVE TO LINK
ANYTHING ...
Clemens Schrimpe (csch@tub.uucp = ...!pyramid!tub!csch)
(csch@db0tui6.bitnet)
TWX: (West-Germany)+186672 rdt d